package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "group_notice",comment = "群组公告表")
public class GroupNotice {
    @AcColumn(name = "id",comment = "群公告ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "group_id",defaultValue = "0",comment = "群组ID",type = ColumnTypeEnums.INT)
    private Integer group_id;

    @AcColumn(name = "creator_id",defaultValue = "0",comment = "创建者用户ID",type = ColumnTypeEnums.INT)
    private Integer creator_id;

    @AcColumn(name = "title", defaultValue = "", comment = "公告标题", type = ColumnTypeEnums.VARCHAR,length = 50, isNull = false)
    private String title;

    @AcColumn(name = "content", defaultValue = "", comment = "公告内容", type = ColumnTypeEnums.VARCHAR,length = 50, isNull = false)
    private String content;

    @AcColumn(name = "is_top",defaultValue = "0",comment = "是否置顶[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_top;

    @AcColumn(name = "is_delete",defaultValue = "0",comment = "是否删除[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_delete;

    @AcColumn(name = "is_confirm",defaultValue = "0",comment = "是否需群成员确认公告[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_confirm;

    @AcColumn(name = "confirm_users",defaultValue = "",comment = "已确认成员",type = ColumnTypeEnums.VARCHAR)
    private String confirm_users;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;

    @AcColumn(name = "deleted_at", comment = "删除时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime deleted_at;
}
